import request from "@/utils/request"

export function findbypage(data,page,size){
    return request({
        url: '/brand/find',
        method: 'post',
        params:{page,size},
        data:data,
    })
}

export function addbrand(data){
    return request({
        url: '/brand/add',
        method: 'post',
        data:data,
    })
}
export function updatebrand(data,tempUsername){
    return request({
        url: '/brand/update',
        method: 'post',
        data:data,
        params:{tempUsername}
    })
}
export function delbrand(id){
    return request({
        url: '/brand/delete',
        method: 'post',
        params:{id},
    })
}
export function findAllBrand(){
    return request({
        url: '/brand/findAll',
        method: 'post',
    })
}
